<template>
  <van-swipe class="my-swipe" :autoplay="1000" indicator-color="white">
    <van-swipe-item v-for="item in bannerArr" :key="item.id">
        <img :src="item.image_url" alt="">
    </van-swipe-item>
    
  </van-swipe>
</template>

<script>
export default {
    name:'Swipe',
    props:["bannerArr"],
    data(){
        return{
            
        }
    },
    created(){
        // console.log(this);
    }
};
</script>

<style scoped>
.my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
    background-color: #39a9ed;
  }
  img{
    display: block;
    width: 100%;
  }
</style>